﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace SDT.CrawlSystem.Servers.Filters
{
    public sealed class ExtraLinkFilter
    {
        //<ExtractLink>
        //  <XPath ><![CDATA[//a[@class='tinlienquan']|]]></XPath>
        //</ExtractLink>
        public string XPath = null;
        public ExtraLinkFilter(XmlNode n)
        {
            if (n == null)
                throw new ArgumentNullException();

            //TypeLink = n.SelectSingleNode("XPath").Attributes["Type"].Value;
            XPath = n.SelectSingleNode("XPath").InnerText;

        }
    }
}